package com.amar.hibernate.dao;

import com.amar.hibernate.commons.dao.GenericDao;
import com.amar.hibernate.domain.StudentEntity;

public interface StudentDao extends GenericDao<StudentEntity, Long>  {
	/**
     * Queries database for user name availability
     * 
     * @param userName
     * @return true if available
     */
    boolean checkAvailable(String userName);
    
    /**
     * Queries user by username
     * 
     * @param userName
     * @return User entity
     */
    StudentEntity loadUserByUserName(String userName);

}
